<?php
if (!empty($this->arrMediaResult) ) { 
    ?>
<div id="box_video_col_right" class="box_width_common box_col_300">


    <div class="title_cate">
        <p class="left">MEDIA LIÊN QUAN</p>
    </div>
    <div class="content_cate">
        <ul>
            <?php
            $last_key = key(array_slice($this->arrMediaResult, -1, 1, TRUE));
            foreach ( $this->arrMediaResult as $key => $media ){
                ?>
                <li <?php echo (($last_key == $key) ? 'class="end"' : '');?>>
                    <div class="block_image_thumb"> <a href="<?php echo $this->Articleurl($media, 1, 1); ?>" title="<?php echo $media['title']; ?>"><img src="<?php echo $this->Imageurlvideo($media['thumbnail_url'], $this->imageSize['size3']); ?>" width="123" height="93" alt="<?php echo $media['title']; ?>" /> <span class="icon_play">&nbsp;</span> </a> </div>
                    <h2> <a href="<?php echo $this->Articleurl($media, 1, 1); ?>" class="txt_black_hover_blue"><?php echo $media['title'];?></a> </h2>
                    <p class="txt_gray txt_11">Lượt xem: <?php echo $this->Articleview($media); ?></p>
                </li>
                <?php
            }
            ?>
        </ul>
        <div class="clear">&nbsp;</div>
    </div>
</div>
<?php } ?>